#!/usr/bin/env python
#-*- coding:utf-8 -*-

from BeautifulSoup import BeautifulSoup
import urllib2
import sys

def tags(url, tag):
	openurl = urllib2.urlopen("http://" + url)

	page = openurl.read()

	soup = BeautifulSoup(''.join(page))

	numbertags = soup.findAll(tag)

	return len(numbertags)
